package com.bestv.search.common.service.impl;

import com.bestv.search.common.dao.ProgramSyncStatusDao;
import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.ProgramSyncStatus;
import com.bestv.search.common.service.ProgramSyncStatusManager;

public class ProgramSyncStatusManagerImpl implements ProgramSyncStatusManager {
    private ProgramSyncStatusDao programSyncStatusDao;

    public ProgramSyncStatus get(DataSourceKey key, String siteCode, String sysName, int serverNo, String fieldName) {
        return programSyncStatusDao.get(siteCode, sysName, serverNo, fieldName);
    }

    public void saveOrUpdate(DataSourceKey key, ProgramSyncStatus syncStatus) {
        programSyncStatusDao.saveOrUpdate(syncStatus);
    }

    public ProgramSyncStatusDao getProgramSyncStatusDao() {
        return programSyncStatusDao;
    }

    public void setProgramSyncStatusDao(ProgramSyncStatusDao programSyncStatusDao) {
        this.programSyncStatusDao = programSyncStatusDao;
    }
}